/**
 * 公共的js和css文件大礼包
 */

/*********************************/
/** 		  公共变量			**/
/*********************************/

var path;
/**
 * 获取项目路径
 */
function getProjectPath(){
	if(path==undefined||path==''){
	//获取当前网址，如： http://localhost:8083/uimcardprj/share/meun.jsp
	var curWwwPath = window.document.location.href;
	//获取主机地址之后的目录，如： uimcardprj/share/meun.jsp
	var pathName = window.document.location.pathname;
	var pos = curWwwPath.indexOf(pathName);
	//获取主机地址，如： http://localhost:8083
	var localhostPath = curWwwPath.substring(0, pos);
	//获取带"/"的项目名，如：/uimcardprj
	var projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1);
	//将项目路劲赋值给path变量以节省调用该函数的代码
		/*if(projectName != ""){
			path = localhostPath + projectName
		}else{
			path = localhostPath;
		}*/
		path = localhostPath;
	}
	return path;
}
//初始化path
getProjectPath();

document.write('<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">');
document.write('<meta name="renderer" content="webkit">');
document.write('<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">');
document.write('<meta http-equiv="Access-Control-Allow-Origin" content="*">');
document.write('<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">');
document.write('<meta name="apple-mobile-web-app-status-bar-style" content="black">');
document.write('<meta name="apple-mobile-web-app-capable" content="yes">');
document.write('<meta name="format-detection" content="telephone=no">');

document.write('<link rel="stylesheet" href="'+path+'/resource/bootstrap/bootstrap.min.css" rel="external nofollow"/>');
document.write('<link rel="stylesheet" href="'+path+'/resource/bootstrap/bootstrap-table.css" rel="external nofollow"/>');
document.write('<link rel="stylesheet" href="'+path+'/resource/layui/css/layui.css" rel="external nofollow"/>');
document.write('<link rel="stylesheet" href="'+path+'/resource/layui/extend/steps/style.css" rel="external nofollow">');
document.write('<link rel="stylesheet" href="'+path+'/resource/css/commons.css" rel="external nofollow"/>');

document.write('<script type="text/javascript" src="'+path+'/resource/js/jquery-2.1.0.min.js" charset="UTF-8"></script>');
document.write('<script type="text/javascript" src="'+path+'/resource/js/ajax-setup.js"></script>');
document.write('<script type="text/javascript" src="'+path+'/resource/bootstrap/bootstrap.min.js" charset="UTF-8"></script>');
document.write('<script type="text/javascript" src="'+path+'/resource/bootstrap/bootstrap-table.js" charset="UTF-8"></script>');
document.write('<script type="text/javascript" src="'+path+'/resource/bootstrap/bootstrap-table-zh-CN.js" charset="UTF-8"></script>');
document.write('<script type="text/javascript" src="'+path+'/resource/bootstrap/bootstrap-table-export.js" charset="UTF-8"></script>');
document.write('<script type="text/javascript" src="'+path+'/resource/bootstrap/tableExport.js" charset="UTF-8"></script>');
document.write('<script type="text/javascript" src="'+path+'/resource/bootstrap/bootstrap-datetimepicker.min.js" charset="UTF-8"></script>');
document.write('<script type="text/javascript" src="'+path+'/resource/bootstrap/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>');
document.write('<script type="text/javascript" src="'+path+'/resource/layui/layui.all.js" charset="UTF-8"></script>');
document.write('<script type="text/javascript" src="'+path+'/resource/js/common-fn.js" charset="UTF-8"></script>');